package com.clhbolg.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.clhbolg.domain.Category;
import com.clhbolg.domain.vo.CategoryVo;
import com.clhbolg.model.dto.CategoryAdminDTO;
import com.clhbolg.model.dto.CategoryDTO;
import com.clhbolg.model.vo.request.ConditionVO;
import com.ruoyi.common.core.mapper.BaseMapperPlus;
import org.apache.ibatis.annotations.Param;
import org.apache.poi.ss.formula.functions.T;

import java.util.List;


/**
 * 分类Mapper接口
 *
 * @author cailinhu
 * @date 2023-02-08
 */
@DS("slave")
public interface CategoryMapper extends BaseMapperPlus<CategoryMapper, Category, CategoryVo> {

    Page<CategoryAdminDTO> listCategoriesAdmin(@Param("vo") ConditionVO vo, Page<T> page);

    List<CategoryDTO> listCategories();
}
